package com.bdqn.business.system.controller;

import com.bdqn.business.system.service.LogService;
import com.bdqn.response.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/log")
public class LogController {


    @Autowired
    private LogService logService;

    @RequestMapping(value = "/getErrorLogList",method = RequestMethod.POST)
    public Result getErrorLogList(@RequestBody Map<String,Object> map){
        return logService.getErrorLogList(map);
    }

    @RequestMapping(value = "/getOptionalLogList",method = RequestMethod.POST)
    public Result getOptionalLogList(@RequestBody Map<String,Object> map){
        return logService.getOptionalLogList(map);
    }

}
